:host {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    &.fit img {
        max-width: 100%;
        max-height: 100%;
    }
}

.default, .pdf {
    width: 100%;
    height: 100%;
}

.loading {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;

    &.visible {
        opacity: 1;
    }
}

